<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}"/>
    <link rel="stylesheet" th:href="@{/css/frm_base.css}" />
    <script th:src="@{/js/jquery-3.5.1.js}"></script>
</head>
<body>
<div class="main">
    <div class="container content">
        <table class="layui-hide" id="notice" lay-filter="notice"></table>
    </div>
</div>

<script th:src="@{/layui/layui.js}"></script>
<script th:inline="none">
    layui.use(['element', 'layer', 'form', 'table'], function () {
        var form = layui.form,
            layer = layui.layer,
            table = layui.table;;

        initTable();

        // 初始化表格
        function initTable() {

            table.render({
                elem: '#notice'
                , url: '/ssms/notice/list'
                , width:700
                , cols: [[
                    {type:'numbers'}
                    , {field: 'content', title: '内容'}
                    , {field: 'publishTime', width: 200, title: '时间'}
                ]]
                , page: true
            });
        }

    });
</script>
</body>
</html>